#ifndef XMUMONITOR_H
#define XMUMONITOR_H

#include "../Render/RenderWidget.h"
#include "../Math/Matrix.h"
#include <string>
#include <QtEvents>
#include <QtGui/QMainWindow>
#include "ui_xmumonitor.h"

class xmumonitor : public QMainWindow
{
	Q_OBJECT

public:
	xmumonitor( char* name, QWidget *parent = 0, Qt::WFlags flags = 0 );
	~xmumonitor();

	void ReadLog( char* name );

private:
	Ui::xmumonitorClass ui;

	RenderWidget* m_renderwidget;
	std::string   m_LogName;

	void Connect_SLot();
 	void keyPressEvent(QKeyEvent *evt);
 	void keyReleaseEvent(QKeyEvent *evt);

private slots:
	void SetCurrentWM( int idx );

private:
	void ShowTime( float t );
	void ShowLeftTeamInfo( const std::string &name = "", float score = 0.0f );
	void ShowRightTeamInfo( const std::string &name = "", float score = 0.0f );
	void ShowObjInfo();
	Angle ComputeObjAngle( const RenderWidget::ObjPos &objPos );
};

#endif // XMUMONITOR_H
